namespace AdminApiTemplate.Services.AdminUser.Models
{
    /// <summary>
    /// 添加登录日志
    /// </summary>
    public class AddLoginLogRequest
    {
        /// <summary>
        /// 登录类型
        /// </summary>
        public LogTypeEnum? LogType { get; set; }

        /// <summary>
        /// 企业微信
        /// </summary>
        public string WorkWx { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        public string UserPass { get; set; }

        /// <summary>
        /// 是否登录成功
        /// </summary>
        public bool? Success { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
    }

    /// <summary>
    /// 登录类型
    /// </summary>
    public enum LogTypeEnum
    {
        /// <summary>
        /// 账号密码登录
        /// </summary>
        Password = 1,

        /// <summary>
        /// 企业微信登录
        /// </summary>
        WorkWx = 2
    }
}
